<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>{if !empty(input('keyword'))}{:input('keyword')}-{/if}{$title|raw}{if input('page') gt 1}-{:lang('v_current')}{:input('page')}{:lang('v_page')}{/if}</title>
<meta name="keywords" content="{$keyword|raw}" />
<meta name="description" content="{$description|raw}" />
<link rel="shortcut icon" type="image/x-icon" href="{$siteRs.ico}" />
{include file="public/css" /}
</head>
<body>
{include file="public/head" /}
<!--面包屑 开始-->
<div class="w-100 bg-light py-sm-3 pt-3 pb-2">
    <div class="container">
        <div class="row">
            <div class="col-md-8 pt-1 d-none d-sm-inline">
                <a href="{$home_path}" class="mr-2">{:lang('v_home')}</a> <i class="fa fa-angle-right"></i>
                <a href="<?php the_list_url($controller); ?>" class="ml-2">{:lang('v_project')}</a>
                {volist name="crumb" id="listnavRs"}
                    <i class="fa fa-angle-right ml-2 mr-2"></i><a href="{$listnavRs.url}">{$listnavRs.title}</a>
                {/volist}
                {if !empty(input('keyword'))}<i class="fa fa-angle-right ml-2 mr-2"></i>{:lang('v_search')}<span class="text-danger ml-2">“{:input('keyword')}”</span>{/if}
            </div>
            <div class="col-md-4">
                <form name="form_search" id="form_search" method="get" action="<?php the_list_url($controller); ?>">
                    <div class="input-group">
                        <input type="text" class="form-control form-control-sm btn-rounded" name="keyword" id="keyword" value="{:input('keyword')}" placeholder="{:lang('v_keyword_tips')}...">
                        <span class="input-group-append"><button type="button" name="btn_search" id="btn_search" class="btn btn-sm btn-rounded px-3"><i class="fa fa-search"></i></button></span>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<!--面包屑 结束-->
<!--主体 开始-->
<div class="container mt-sm-5 mt-3">
    <div class="row">
        <!--列表 开始-->
        <div class="col-md-9 mb-sm-4">
            {empty name="list"}
                <div class="row"><div class="col-md-12 my-5 text-center h5"><i class="fa fa-info-circle mr-2"></i>{:lang('v_nodata')}</div></div>
            {else /}
                {volist name="list" id="rs"}
                    <div class="row">
                        <div class="col-md-3 col-5 max-height-100"><a href="{$rs.url}"><img class="img-fluid rounded" src="{$rs.thumb}" alt="{$rs.title}" onerror="this.src='/skin/admin/img/nopic.png'"></a></div>
                        <div class="col-md-9 col-7">
                            <h5 class="mb-3 ellipsis line-1"><a href="{$rs.url}">{$rs.title}</a></h5>
                            <p class="text-muted mb-sm-2 mb-0 ellipsis line-3">{$rs.description|raw}</p>
                            <p class="text-muted mb-0 d-none d-sm-inline">
                                <i class="fa fa-cubes mr-1"></i>{:lang('v_sort')}：{$rs.sort_title}
                                <i class="far fa-clock ml-2 mr-1"></i>{:lang('v_date')}：{$rs.addtime|date='Y-m-d'}
                                <i class="fa fa-eye ml-2 mr-1"></i> {:lang('v_hits')}：{$rs.hits}
                            </p>
                        </div>
                    </div><hr>
                {/volist}
                <!--分页-->
                <div class="row mt-sm-4 text-center">
                    <div class="col-sm-12">
                        <div class="pages">{$list->render()|raw}</div>
                    </div>
                    <div class="col-sm-12 mt-3 h6">{:lang('v_total')} {$last_page} {:lang('v_page')} {$total} {:lang('v_records')}</div>
                </div>
            {/empty}
        </div>
        <!--列表 结束-->
        <!--侧边栏 开始-->
        <div class="col-md-3 d-none d-md-block">
            <div class="page-right">
                <!--分类 开始-->
                <h6 class="font-weight-bold mb-3"><i class="fa fa-dot-circle font-weight-light small"></i> {:lang('v_project_sort')}</h6>
                <ul class="nav nav-list flex-column">
                    <li><a class="{if empty(input('sortid'))}active{/if}" href="<?php the_list_url($controller); ?>">{:lang('v_project_all')}</a></li>
                    {include file="public/side_sort" /}
                </ul>
                <!--分类 结束-->
            </div>
            <div class="page-right">
                <!--热门信息 开始-->
                <h6 class="font-weight-bold"><i class="fa fa-dot-circle font-weight-light small"></i> {:lang('v_project_hot')}</h6>
                <hr>
                <ul class="aside-list mb-0 pl-0">
                    <?php $hotCaseList = table_list($controller, 0, '*', $lang, 5, "$controller.hits desc"); ?>
                    {volist name="hotCaseList" id="hotproRs"}
                        <li class="clearfix">
                            <a href="<?php the_view_url($hotproRs['id'],$controller); ?>">
                                <img alt="{$hotproRs.title}" width="60" class="float-left img-fluid rounded mr-2 mt-1" src="{$hotproRs.thumb}" onerror="this.src='/skin/admin/img/nopic.png'">
                                <span class="ellipsis line-3">{$hotproRs.title}</span>
                            </a>
                        </li>
                    {/volist}
                </ul>
                <!--热门信息 结束-->
            </div>
        </div>
        <!--侧边栏 结束-->
    </div>
</div>
{include file="public/foot" /}
</body>
</html>